package com.bxait.toymail.product.feign;

import com.bxait.com.to.SkuReductionTo;
import com.bxait.com.to.SpuBoundTo;
import com.bxait.com.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Chen
 * @description:
 * @ClassName CouponFeignService
 * @create 2023-03-20 22:01
 * @Version 1.0
 */
@FeignClient("toymail-coupon")
public interface CouponFeignService {
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    // 保存sku的优惠卷信息
    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuReduction(SkuReductionTo skuReductionTo);
}
